<?php
class forms_OrderForm extends forms_FormBase
{
	/**
	 * Init
	 * @see Zend/Zend_Form#init()
	 */
	public function init()
	{
		$oStateElement = new Zend_Form_Element_Text('state');
		$oStateElement->setRequired(true);
		$this->addElement($oStateElement);

		$oCityElement = new Zend_Form_Element_Text('city');
		$oCityElement->setRequired(true);
		$this->addElement($oCityElement);

		$oAddressElement = new Zend_Form_Element_Text('address');
		$oAddressElement->setRequired(true);
		$this->addElement($oAddressElement);

		$oAptElement = new Zend_Form_Element_Text('apt');
		$oAptElement->setRequired(false);
		$this->addElement($oAptElement);

		$oNotesElement = new Zend_Form_Element_Text('notes');
		$oNotesElement->setRequired(false);
		$this->addElement($oNotesElement);

		$oEmailElement = new Zend_Form_Element_Text('email');
		$oEmailElement = $this->_initDefaultFiltersAndValidators($oEmailElement);
		$this->addElement($oEmailElement);

		$oPhoneElement = new Zend_Form_Element_Text('phone');
		$oPhoneElement->setRequired(true);
		$this->addElement($oPhoneElement);

		$oCouponElement = new Zend_Form_Element_Text('coupon');
		$oCouponElement->setRequired(false);
		$this->addElement($oCouponElement);
	}
}